#include"comm.h"
#include<unistd.h>

int main()
{
    int shmid = Createshm(4096);
    printf("diary!\n");
    char* addr = shmat(shmid, NULL, 0);
    sleep(2);
    int i = 0;
    while(i++<26)
    {
        printf("client say#%s \n",addr);
        sleep(1);
    }
    shmdt(addr);
    sleep(2);
    destroyshm(shmid);
    return 0;
}